package com.ian.starter.controller;

import com.ian.starter.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @desc 测试接口
 *
 * @author 张伟
 * @date 2022/1/24
 */
@RestController
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("/demo1")
    public String demo1() {
        return demoService.say();
    }
}
